<?php


namespace app\backend\controller;
use app\backend\service\LoginService;
use app\common\RootController;

class Index extends Backend
{
    /**
     * 后台首页
     * @return string
     */
    public function index()
    {
        return $this->fetch('', ['bodyClass' => 'layui-layout-body']);
    }

    /**
     * 退出登录
     * @param LoginService $service
     * @return \think\response\Redirect
     */
    public function logout(LoginService $service)
    {
        return $service->logout();
    }

}